home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- REM This is BESTBACK.BAT
- IF %1!==! GOTO OOPS
- ATTRIB +A
- ECHO Backing up files to drive %1 . . .
- :TOP
- XCOPY . %1 /M > NUL
- IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 GOTO FULL
- ECHO All files copied to %1
- GOTO END
- :FULL
- ECHO Put a new formatted blank disk in %1, then
- PAUSE
- ECHO Copying additional files to drive %1 . . .
- GOTO TOP
- :OOPS
- ECHO Enter the drive letter where you want
- ECHO your copies to go, after the %0,
- ECHO e.g., %0 A: or %0 B:
- :END
-